package io.kiki.sba.registry.common.model.client.pb;

/**
 * Protobuf type {@code PublisherRegisterPb}
 */
public final class PublisherRegisterPb extends com.google.protobuf.GeneratedMessageV3 implements
        // @@protoc_insertion_point(message_implements:PublisherRegisterPb)
        PublisherRegisterPbOrBuilder {
    public static final int DATALIST_FIELD_NUMBER = 1;
    public static final int BASEREGISTER_FIELD_NUMBER = 2;
    private static final long serialVersionUID = 1L;
    // @@protoc_insertion_point(class_scope:PublisherRegisterPb)
    private static final PublisherRegisterPb DEFAULT_INSTANCE;
    private static final com.google.protobuf.Parser<PublisherRegisterPb> PARSER = new com.google.protobuf.AbstractParser<PublisherRegisterPb>() {
        public PublisherRegisterPb parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
            return new PublisherRegisterPb(input, extensionRegistry);
        }
    };

    static {
        DEFAULT_INSTANCE = new PublisherRegisterPb();
    }

    private int bitField0_;
    private java.util.List<DataBoxPb> dataList_;
    private BaseRegisterPb baseRegister_;
    private byte memoizedIsInitialized = -1;

    // Use PublisherRegisterPb.newBuilder() to construct.
    private PublisherRegisterPb(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
    }

    private PublisherRegisterPb() {
        dataList_ = java.util.Collections.emptyList();
    }

    private PublisherRegisterPb(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
        this();
        if (extensionRegistry == null) {
            throw new java.lang.NullPointerException();
        }
        int mutable_bitField0_ = 0;
        com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder();
        try {
            boolean done = false;
            while (!done) {
                int tag = input.readTag();
                switch (tag) {
                case 0:
                    done = true;
                    break;
                default: {
                    if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
                        done = true;
                    }
                    break;
                }
                case 10: {
                    if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
                        dataList_ = new java.util.ArrayList<DataBoxPb>();
                        mutable_bitField0_ |= 0x00000001;
                    }
                    dataList_.add(input.readMessage(DataBoxPb.parser(), extensionRegistry));
                    break;
                }
                case 18: {
                    BaseRegisterPb.Builder subBuilder = null;
                    if (baseRegister_ != null) {
                        subBuilder = baseRegister_.toBuilder();
                    }
                    baseRegister_ = input.readMessage(BaseRegisterPb.parser(), extensionRegistry);
                    if (subBuilder != null) {
                        subBuilder.mergeFrom(baseRegister_);
                        baseRegister_ = subBuilder.buildPartial();
                    }

                    break;
                }
                }
            }
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.setUnfinishedMessage(this);
        } catch (java.io.IOException e) {
            throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
        } finally {
            if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
                dataList_ = java.util.Collections.unmodifiableList(dataList_);
            }
            this.unknownFields = unknownFields.build();
            makeExtensionsImmutable();
        }
    }

    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return PublisherRegisterPbOuterClass.internal_static_PublisherRegisterPb_descriptor;
    }

    public static PublisherRegisterPb parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
    }

    public static PublisherRegisterPb parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
    }

    public static PublisherRegisterPb parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
    }

    public static PublisherRegisterPb parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
    }

    public static PublisherRegisterPb parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
    }

    public static PublisherRegisterPb parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
    }

    public static PublisherRegisterPb parseFrom(java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static PublisherRegisterPb parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry);
    }

    public static PublisherRegisterPb parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    }

    public static PublisherRegisterPb parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }

    public static PublisherRegisterPb parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static PublisherRegisterPb parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry);
    }

    public static Builder newBuilder() {
        return DEFAULT_INSTANCE.toBuilder();
    }

    public static Builder newBuilder(PublisherRegisterPb prototype) {
        return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }

    public static PublisherRegisterPb getDefaultInstance() {
        return DEFAULT_INSTANCE;
    }

    public static com.google.protobuf.Parser<PublisherRegisterPb> parser() {
        return PARSER;
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
        return this.unknownFields;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
        return PublisherRegisterPbOuterClass.internal_static_PublisherRegisterPb_fieldAccessorTable.ensureFieldAccessorsInitialized(PublisherRegisterPb.class, PublisherRegisterPb.Builder.class);
    }

    /**
     * <code>repeated .DataBoxPb dataList = 1;</code>
     */
    public java.util.List<DataBoxPb> getDataListList() {
        return dataList_;
    }

    /**
     * <code>repeated .DataBoxPb dataList = 1;</code>
     */
    public java.util.List<? extends DataBoxPbOrBuilder> getDataListOrBuilderList() {
        return dataList_;
    }

    /**
     * <code>repeated .DataBoxPb dataList = 1;</code>
     */
    public int getDataListCount() {
        return dataList_.size();
    }

    /**
     * <code>repeated .DataBoxPb dataList = 1;</code>
     */
    public DataBoxPb getDataList(int index) {
        return dataList_.get(index);
    }

    /**
     * <code>repeated .DataBoxPb dataList = 1;</code>
     */
    public DataBoxPbOrBuilder getDataListOrBuilder(int index) {
        return dataList_.get(index);
    }

    /**
     * <code>.BaseRegisterPb baseRegister = 2;</code>
     */
    public boolean hasBaseRegister() {
        return baseRegister_ != null;
    }

    /**
     * <code>.BaseRegisterPb baseRegister = 2;</code>
     */
    public BaseRegisterPb getBaseRegister() {
        return baseRegister_ == null ? BaseRegisterPb.getDefaultInstance() : baseRegister_;
    }

    /**
     * <code>.BaseRegisterPb baseRegister = 2;</code>
     */
    public BaseRegisterPbOrBuilder getBaseRegisterOrBuilder() {
        return getBaseRegister();
    }

    public final boolean isInitialized() {
        byte isInitialized = memoizedIsInitialized;
        if (isInitialized == 1)
            return true;
        if (isInitialized == 0)
            return false;

        memoizedIsInitialized = 1;
        return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
        for (int i = 0; i < dataList_.size(); i++) {
            output.writeMessage(1, dataList_.get(i));
        }
        if (baseRegister_ != null) {
            output.writeMessage(2, getBaseRegister());
        }
        unknownFields.writeTo(output);
    }

    public int getSerializedSize() {
        int size = memoizedSize;
        if (size != -1)
            return size;

        size = 0;
        for (int i = 0; i < dataList_.size(); i++) {
            size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dataList_.get(i));
        }
        if (baseRegister_ != null) {
            size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBaseRegister());
        }
        size += unknownFields.getSerializedSize();
        memoizedSize = size;
        return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
            return true;
        }
        if (!(obj instanceof PublisherRegisterPb)) {
            return super.equals(obj);
        }
        PublisherRegisterPb other = (PublisherRegisterPb) obj;

        boolean result = true;
        result = result && getDataListList().equals(other.getDataListList());
        result = result && (hasBaseRegister() == other.hasBaseRegister());
        if (hasBaseRegister()) {
            result = result && getBaseRegister().equals(other.getBaseRegister());
        }
        result = result && unknownFields.equals(other.unknownFields);
        return result;
    }

    @java.lang.Override
    public int hashCode() {
        if (memoizedHashCode != 0) {
            return memoizedHashCode;
        }
        int hash = 41;
        hash = (19 * hash) + getDescriptor().hashCode();
        if (getDataListCount() > 0) {
            hash = (37 * hash) + DATALIST_FIELD_NUMBER;
            hash = (53 * hash) + getDataListList().hashCode();
        }
        if (hasBaseRegister()) {
            hash = (37 * hash) + BASEREGISTER_FIELD_NUMBER;
            hash = (53 * hash) + getBaseRegister().hashCode();
        }
        hash = (29 * hash) + unknownFields.hashCode();
        memoizedHashCode = hash;
        return hash;
    }

    public Builder newBuilderForType() {
        return newBuilder();
    }

    public Builder toBuilder() {
        return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        Builder builder = new Builder(parent);
        return builder;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<PublisherRegisterPb> getParserForType() {
        return PARSER;
    }

    public PublisherRegisterPb getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
    }

    /**
     * Protobuf type {@code PublisherRegisterPb}
     */
    public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
            // @@protoc_insertion_point(builder_implements:PublisherRegisterPb)
            PublisherRegisterPbOrBuilder {
        private int bitField0_;
        private java.util.List<DataBoxPb> dataList_ = java.util.Collections.emptyList();
        private com.google.protobuf.RepeatedFieldBuilderV3<DataBoxPb, DataBoxPb.Builder, DataBoxPbOrBuilder> dataListBuilder_;
        private BaseRegisterPb baseRegister_ = null;
        private com.google.protobuf.SingleFieldBuilderV3<BaseRegisterPb, BaseRegisterPb.Builder, BaseRegisterPbOrBuilder> baseRegisterBuilder_;

        // Construct using
        // com.alipay.sofa.registry.common.model.client.pb.PublisherRegisterPb.newBuilder()
        private Builder() {
            maybeForceBuilderInitialization();
        }

        private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
            super(parent);
            maybeForceBuilderInitialization();
        }

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            return PublisherRegisterPbOuterClass.internal_static_PublisherRegisterPb_descriptor;
        }

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
            return PublisherRegisterPbOuterClass.internal_static_PublisherRegisterPb_fieldAccessorTable.ensureFieldAccessorsInitialized(PublisherRegisterPb.class, PublisherRegisterPb.Builder.class);
        }

        private void maybeForceBuilderInitialization() {
            if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
                getDataListFieldBuilder();
            }
        }

        public Builder clear() {
            super.clear();
            if (dataListBuilder_ == null) {
                dataList_ = java.util.Collections.emptyList();
                bitField0_ = (bitField0_ & ~0x00000001);
            } else {
                dataListBuilder_.clear();
            }
            if (baseRegisterBuilder_ == null) {
                baseRegister_ = null;
            } else {
                baseRegister_ = null;
                baseRegisterBuilder_ = null;
            }
            return this;
        }

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
            return PublisherRegisterPbOuterClass.internal_static_PublisherRegisterPb_descriptor;
        }

        public PublisherRegisterPb getDefaultInstanceForType() {
            return PublisherRegisterPb.getDefaultInstance();
        }

        public PublisherRegisterPb build() {
            PublisherRegisterPb result = buildPartial();
            if (!result.isInitialized()) {
                throw newUninitializedMessageException(result);
            }
            return result;
        }

        public PublisherRegisterPb buildPartial() {
            PublisherRegisterPb result = new PublisherRegisterPb(this);
            int from_bitField0_ = bitField0_;
            int to_bitField0_ = 0;
            if (dataListBuilder_ == null) {
                if (((bitField0_ & 0x00000001) == 0x00000001)) {
                    dataList_ = java.util.Collections.unmodifiableList(dataList_);
                    bitField0_ = (bitField0_ & ~0x00000001);
                }
                result.dataList_ = dataList_;
            } else {
                result.dataList_ = dataListBuilder_.build();
            }
            if (baseRegisterBuilder_ == null) {
                result.baseRegister_ = baseRegister_;
            } else {
                result.baseRegister_ = baseRegisterBuilder_.build();
            }
            result.bitField0_ = to_bitField0_;
            onBuilt();
            return result;
        }

        public Builder clone() {
            return (Builder) super.clone();
        }

        public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
            return (Builder) super.setField(field, value);
        }

        public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
            return (Builder) super.clearField(field);
        }

        public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
            return (Builder) super.clearOneof(oneof);
        }

        public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
            return (Builder) super.setRepeatedField(field, index, value);
        }

        public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
            return (Builder) super.addRepeatedField(field, value);
        }

        public Builder mergeFrom(com.google.protobuf.Message other) {
            if (other instanceof PublisherRegisterPb) {
                return mergeFrom((PublisherRegisterPb) other);
            } else {
                super.mergeFrom(other);
                return this;
            }
        }

        public Builder mergeFrom(PublisherRegisterPb other) {
            if (other == PublisherRegisterPb.getDefaultInstance())
                return this;
            if (dataListBuilder_ == null) {
                if (!other.dataList_.isEmpty()) {
                    if (dataList_.isEmpty()) {
                        dataList_ = other.dataList_;
                        bitField0_ = (bitField0_ & ~0x00000001);
                    } else {
                        ensureDataListIsMutable();
                        dataList_.addAll(other.dataList_);
                    }
                    onChanged();
                }
            } else {
                if (!other.dataList_.isEmpty()) {
                    if (dataListBuilder_.isEmpty()) {
                        dataListBuilder_.dispose();
                        dataListBuilder_ = null;
                        dataList_ = other.dataList_;
                        bitField0_ = (bitField0_ & ~0x00000001);
                        dataListBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDataListFieldBuilder() : null;
                    } else {
                        dataListBuilder_.addAllMessages(other.dataList_);
                    }
                }
            }
            if (other.hasBaseRegister()) {
                mergeBaseRegister(other.getBaseRegister());
            }
            this.mergeUnknownFields(other.unknownFields);
            onChanged();
            return this;
        }

        public final boolean isInitialized() {
            return true;
        }

        public Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
            PublisherRegisterPb parsedMessage = null;
            try {
                parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                parsedMessage = (PublisherRegisterPb) e.getUnfinishedMessage();
                throw e.unwrapIOException();
            } finally {
                if (parsedMessage != null) {
                    mergeFrom(parsedMessage);
                }
            }
            return this;
        }

        private void ensureDataListIsMutable() {
            if (!((bitField0_ & 0x00000001) == 0x00000001)) {
                dataList_ = new java.util.ArrayList<DataBoxPb>(dataList_);
                bitField0_ |= 0x00000001;
            }
        }

        /**
         * <code>repeated .DataBoxPb dataList = 1;</code>
         */
        public java.util.List<DataBoxPb> getDataListList() {
            if (dataListBuilder_ == null) {
                return java.util.Collections.unmodifiableList(dataList_);
            } else {
                return dataListBuilder_.getMessageList();
            }
        }

        /**
         * <code>repeated .DataBoxPb dataList = 1;</code>
         */
        public int getDataListCount() {
            if (dataListBuilder_ == null) {
                return dataList_.size();
            } else {
                return dataListBuilder_.getCount();
            }
        }

        /**
         * <code>repeated .DataBoxPb dataList = 1;</code>
         */
        public DataBoxPb getDataList(int index) {
            if (dataListBuilder_ == null) {
                return dataList_.get(index);
            } else {
                return dataListBuilder_.getMessage(index);
            }
        }

        /**
         * <code>repeated .DataBoxPb dataList = 1;</code>
         */
        public Builder setDataList(int index, DataBoxPb value) {
            if (dataListBuilder_ == null) {
                if (value == null) {
                    throw new NullPointerException();
                }
                ensureDataListIsMutable();
                dataList_.set(index, value);
                onChanged();
            } else {
                dataListBuilder_.setMessage(index, value);
            }
            return this;
        }

        /**
         * <code>repeated .DataBoxPb dataList = 1;</code>
         */
        public Builder setDataList(int index, DataBoxPb.Builder builderForValue) {
            if (dataListBuilder_ == null) {
                ensureDataListIsMutable();
                dataList_.set(index, builderForValue.build());
                onChanged();
            } else {
                dataListBuilder_.setMessage(index, builderForValue.build());
            }
            return this;
        }

        /**
         * <code>repeated .DataBoxPb dataList = 1;</code>
         */
        public Builder addDataList(DataBoxPb value) {
            if (dataListBuilder_ == null) {
                if (value == null) {
                    throw new NullPointerException();
                }
                ensureDataListIsMutable();
                dataList_.add(value);
                onChanged();
            } else {
                dataListBuilder_.addMessage(value);
            }
            return this;
        }

        /**
         * <code>repeated .DataBoxPb dataList = 1;</code>
         */
        public Builder addDataList(int index, DataBoxPb value) {
            if (dataListBuilder_ == null) {
                if (value == null) {
                    throw new NullPointerException();
                }
                ensureDataListIsMutable();
                dataList_.add(index, value);
                onChanged();
            } else {
                dataListBuilder_.addMessage(index, value);
            }
            return this;
        }

        /**
         * <code>repeated .DataBoxPb dataList = 1;</code>
         */
        public Builder addDataList(DataBoxPb.Builder builderForValue) {
            if (dataListBuilder_ == null) {
                ensureDataListIsMutable();
                dataList_.add(builderForValue.build());
                onChanged();
            } else {
                dataListBuilder_.addMessage(builderForValue.build());
            }
            return this;
        }

        /**
         * <code>repeated .DataBoxPb dataList = 1;</code>
         */
        public Builder addDataList(int index, DataBoxPb.Builder builderForValue) {
            if (dataListBuilder_ == null) {
                ensureDataListIsMutable();
                dataList_.add(index, builderForValue.build());
                onChanged();
            } else {
                dataListBuilder_.addMessage(index, builderForValue.build());
            }
            return this;
        }

        /**
         * <code>repeated .DataBoxPb dataList = 1;</code>
         */
        public Builder addAllDataList(java.lang.Iterable<? extends DataBoxPb> values) {
            if (dataListBuilder_ == null) {
                ensureDataListIsMutable();
                com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataList_);
                onChanged();
            } else {
                dataListBuilder_.addAllMessages(values);
            }
            return this;
        }

        /**
         * <code>repeated .DataBoxPb dataList = 1;</code>
         */
        public Builder clearDataList() {
            if (dataListBuilder_ == null) {
                dataList_ = java.util.Collections.emptyList();
                bitField0_ = (bitField0_ & ~0x00000001);
                onChanged();
            } else {
                dataListBuilder_.clear();
            }
            return this;
        }

        /**
         * <code>repeated .DataBoxPb dataList = 1;</code>
         */
        public Builder removeDataList(int index) {
            if (dataListBuilder_ == null) {
                ensureDataListIsMutable();
                dataList_.remove(index);
                onChanged();
            } else {
                dataListBuilder_.remove(index);
            }
            return this;
        }

        /**
         * <code>repeated .DataBoxPb dataList = 1;</code>
         */
        public DataBoxPb.Builder getDataListBuilder(int index) {
            return getDataListFieldBuilder().getBuilder(index);
        }

        /**
         * <code>repeated .DataBoxPb dataList = 1;</code>
         */
        public DataBoxPbOrBuilder getDataListOrBuilder(int index) {
            if (dataListBuilder_ == null) {
                return dataList_.get(index);
            } else {
                return dataListBuilder_.getMessageOrBuilder(index);
            }
        }

        /**
         * <code>repeated .DataBoxPb dataList = 1;</code>
         */
        public java.util.List<? extends DataBoxPbOrBuilder> getDataListOrBuilderList() {
            if (dataListBuilder_ != null) {
                return dataListBuilder_.getMessageOrBuilderList();
            } else {
                return java.util.Collections.unmodifiableList(dataList_);
            }
        }

        /**
         * <code>repeated .DataBoxPb dataList = 1;</code>
         */
        public DataBoxPb.Builder addDataListBuilder() {
            return getDataListFieldBuilder().addBuilder(DataBoxPb.getDefaultInstance());
        }

        /**
         * <code>repeated .DataBoxPb dataList = 1;</code>
         */
        public DataBoxPb.Builder addDataListBuilder(int index) {
            return getDataListFieldBuilder().addBuilder(index, DataBoxPb.getDefaultInstance());
        }

        /**
         * <code>repeated .DataBoxPb dataList = 1;</code>
         */
        public java.util.List<DataBoxPb.Builder> getDataListBuilderList() {
            return getDataListFieldBuilder().getBuilderList();
        }

        private com.google.protobuf.RepeatedFieldBuilderV3<DataBoxPb, DataBoxPb.Builder, DataBoxPbOrBuilder> getDataListFieldBuilder() {
            if (dataListBuilder_ == null) {
                dataListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<DataBoxPb, DataBoxPb.Builder, DataBoxPbOrBuilder>(dataList_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean());
                dataList_ = null;
            }
            return dataListBuilder_;
        }

        /**
         * <code>.BaseRegisterPb baseRegister = 2;</code>
         */
        public boolean hasBaseRegister() {
            return baseRegisterBuilder_ != null || baseRegister_ != null;
        }

        /**
         * <code>.BaseRegisterPb baseRegister = 2;</code>
         */
        public BaseRegisterPb getBaseRegister() {
            if (baseRegisterBuilder_ == null) {
                return baseRegister_ == null ? BaseRegisterPb.getDefaultInstance() : baseRegister_;
            } else {
                return baseRegisterBuilder_.getMessage();
            }
        }

        /**
         * <code>.BaseRegisterPb baseRegister = 2;</code>
         */
        public Builder setBaseRegister(BaseRegisterPb value) {
            if (baseRegisterBuilder_ == null) {
                if (value == null) {
                    throw new NullPointerException();
                }
                baseRegister_ = value;
                onChanged();
            } else {
                baseRegisterBuilder_.setMessage(value);
            }

            return this;
        }

        /**
         * <code>.BaseRegisterPb baseRegister = 2;</code>
         */
        public Builder setBaseRegister(BaseRegisterPb.Builder builderForValue) {
            if (baseRegisterBuilder_ == null) {
                baseRegister_ = builderForValue.build();
                onChanged();
            } else {
                baseRegisterBuilder_.setMessage(builderForValue.build());
            }

            return this;
        }

        /**
         * <code>.BaseRegisterPb baseRegister = 2;</code>
         */
        public Builder mergeBaseRegister(BaseRegisterPb value) {
            if (baseRegisterBuilder_ == null) {
                if (baseRegister_ != null) {
                    baseRegister_ = BaseRegisterPb.newBuilder(baseRegister_).mergeFrom(value).buildPartial();
                } else {
                    baseRegister_ = value;
                }
                onChanged();
            } else {
                baseRegisterBuilder_.mergeFrom(value);
            }

            return this;
        }

        /**
         * <code>.BaseRegisterPb baseRegister = 2;</code>
         */
        public Builder clearBaseRegister() {
            if (baseRegisterBuilder_ == null) {
                baseRegister_ = null;
                onChanged();
            } else {
                baseRegister_ = null;
                baseRegisterBuilder_ = null;
            }

            return this;
        }

        /**
         * <code>.BaseRegisterPb baseRegister = 2;</code>
         */
        public BaseRegisterPb.Builder getBaseRegisterBuilder() {

            onChanged();
            return getBaseRegisterFieldBuilder().getBuilder();
        }

        /**
         * <code>.BaseRegisterPb baseRegister = 2;</code>
         */
        public BaseRegisterPbOrBuilder getBaseRegisterOrBuilder() {
            if (baseRegisterBuilder_ != null) {
                return baseRegisterBuilder_.getMessageOrBuilder();
            } else {
                return baseRegister_ == null ? BaseRegisterPb.getDefaultInstance() : baseRegister_;
            }
        }

        /**
         * <code>.BaseRegisterPb baseRegister = 2;</code>
         */
        private com.google.protobuf.SingleFieldBuilderV3<BaseRegisterPb, BaseRegisterPb.Builder, BaseRegisterPbOrBuilder> getBaseRegisterFieldBuilder() {
            if (baseRegisterBuilder_ == null) {
                baseRegisterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<BaseRegisterPb, BaseRegisterPb.Builder, BaseRegisterPbOrBuilder>(getBaseRegister(), getParentForChildren(), isClean());
                baseRegister_ = null;
            }
            return baseRegisterBuilder_;
        }

        public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
            return super.setUnknownFieldsProto3(unknownFields);
        }

        public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
            return super.mergeUnknownFields(unknownFields);
        }

        // @@protoc_insertion_point(builder_scope:PublisherRegisterPb)
    }
}
